

const {ccclass, property} = cc._decorator;

@ccclass
export default class TestItem extends cc.Component {

    @property(cc.Label)
    lbName:cc.Label = null
  
    public refresh(index:number){
        this.lbName.string = ""+index
    }
}
